package com.hnucm.cooklife.contract.history;

import com.hnucm.cooklife.base.IBaseView;
import com.hnucm.cooklife.bean.db.History;
import com.hnucm.cooklife.bean.me.DishColl;

import java.util.List;

import io.reactivex.Observable;

public class Contract {
    public interface IHistoryModel{
        Observable<List<DishColl>> loadHistory(int userId);
        Observable<List<DishColl>> refresgHistory(int userId);
    }

    public interface IHistoryView extends IBaseView{
        void onLoadHistory(List<DishColl> historyList);
        void onRefreshHistory(List<DishColl> historyList);
    }

    public interface IHistoryPresenter{
        void loadHistory(int userId);
        void refreshHistory(int userId);
    }
}
